home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / crontab.z / crontab
Text File  |  1998-10-20  |  7KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCRRRROOOONNNNTTTTAAAABBBB((((1111))))                                                          CCCCRRRROOOONNNNTTTTAAAABBBB((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      crontab - user crontab file
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ccccrrrroooonnnnttttaaaabbbb [file]
  13.      ccccrrrroooonnnnttttaaaabbbb ----rrrr [file]
  14.      ccccrrrroooonnnnttttaaaabbbb ----llll [file]
  15.      ccccrrrroooonnnnttttaaaabbbb ----eeee [file]
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      _c_r_o_n_t_a_b copies the specified file, or standard input if no file is
  19.      specified, into a directory that holds all users' crontabs.  The -r
  20.      option removes a user's crontab from the crontab directory.  _c_r_o_n_t_a_b -l
  21.      will list the crontab file for the invoking user. The -e option spawns an
  22.      editor which contains the user's current crontab (as output by crontab
  23.      -l), and automatically updates the crontab when the user saves the file
  24.      and exits the editor. The name of the editor to invoke can be specified
  25.      by the environment variable VISUAL or EDITOR; else, ed is used by
  26.      default.
  27.  
  28.      Normal users may only remove, list, or edit their own crontab files which
  29.      is the default.  The superuser (root) may supply any username following
  30.      ----rrrr, ----llll, or ----eeee to remove, list, or edit that user's crontab.
  31.  
  32.      If the file ////eeeettttcccc////ccccrrrroooonnnn....dddd////ccccrrrroooonnnn....aaaalllllllloooowwww exists, only users whose names appear
  33.      in the file are permitted to use _c_r_o_n_t_a_b. This restriction applies to all
  34.      users, including root.  If that file does not exist, the file
  35.      ////eeeettttcccc////ccccrrrroooonnnn....dddd////ccccrrrroooonnnn....ddddeeeennnnyyyy is checked to determine if the user should be
  36.      denied access to _c_r_o_n_t_a_b. If neither file exists, only root is allowed to
  37.      submit a job.  If ccccrrrroooonnnn....aaaalllllllloooowwww does not exist and ccccrrrroooonnnn....ddddeeeennnnyyyy exists but is
  38.      empty, global usage is permitted.  The allow/deny files consist of one
  39.      user name per line.
  40.  
  41.      A crontab file consists of lines of six fields each.  The fields are
  42.      separated by spaces or tabs.  The first five are integer patterns that
  43.      specify the following:
  44.  
  45.           minute (0-59),
  46.           hour (0-23),
  47.           day of the month (1-31),
  48.           month of the year (1-12),
  49.           day of the week (0-6 with 0=Sunday).
  50.  
  51.      Each of these patterns may be either an asterisk  (meaning all legal
  52.      values) or a list of elements separated by commas.  An element is either
  53.      a number or two numbers separated by a minus sign (meaning an inclusive
  54.      range).  Note that the specification of days may be made by two fields
  55.      (day of the month and day of the week).  If both are specified as a list
  56.      of elements, both are adhered to.  For example, 0 0 1,15 * 1 would run a
  57.      command on the first and fifteenth of each month, as well as on every
  58.      Monday.  To specify days by only one field, the other field should be set
  59.      to * (for example, 0 0 * * 1 would run a command only on Mondays).
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCRRRROOOONNNNTTTTAAAABBBB((((1111))))                                                          CCCCRRRROOOONNNNTTTTAAAABBBB((((1111))))
  71.  
  72.  
  73.  
  74.      The sixth field of a line in a crontab file is a string that is executed
  75.      by the shell at the specified times.  A percent character in this field
  76.      (unless escaped by \\\\) is translated to a new-line character.  Only the
  77.      first line (up to a % or end of line) of the command field is executed by
  78.      the shell.  The other lines are made available to the command as standard
  79.      input.
  80.  
  81.      The shell is invoked from your $$$$HHHHOOOOMMMMEEEE directory with an aaaarrrrgggg0000 of sssshhhh....  Users
  82.      who desire to have their ._p_r_o_f_i_l_e executed must explicitly do so in the
  83.      crontab file.  _C_r_o_n supplies a default environment for every shell,
  84.      defining HHHHOOOOMMMMEEEE,,,, LLLLOOOOGGGGNNNNAAAAMMMMEEEE,,,, UUUUSSSSEEEERRRR,,,, SSSSHHHHEEEELLLLLLLL((((====////bbbbiiiinnnn////sssshhhh)))),,,,
  85.      PPPPAAAATTTTHHHH((((====////uuuussssrrrr////ssssbbbbiiiinnnn::::////uuuussssrrrr////bbbbssssdddd////::::////uuuussssrrrr////bbbbiiiinnnn::::////bbbbiiiinnnn////::::////eeeettttcccc::::////uuuussssrrrr////eeeettttcccc)))),,,, and TTTTZZZZ.
  86.  
  87.      If you do not redirect the standard output and standard error of your
  88.      commands, any generated output or errors will be mailed to you.
  89.  
  90.      Any errors encountered while parsing the crontab file (or stdin) will
  91.      cause _c_r_o_n_t_a_b to abort with no changes being made to any existing
  92.      crontab.
  93.  
  94. FFFFIIIILLLLEEEESSSS
  95.      /etc/cron.d                main cron directory
  96.      /var/spool/cron/crontabs   spool area
  97.      /var/cron/log              accounting information
  98.      /etc/cron.d/cron.allow     optional list of allowed users
  99.      /etc/cron.d/cron.deny      list of denied users
  100.      /etc/cron.d/FIFO           to communicate crontab changes to _c_r_o_n
  101.  
  102. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  103.      sh(1), cron(1M)
  104.  
  105. NNNNOOOOTTTTEEEESSSS
  106.      If you inadvertently enter the ccccrrrroooonnnnttttaaaabbbb command with no argument(s), you
  107.      may exit without overwriting the existing crontab entry either by
  108.      generating an interrupt (typically by typing ^C or DEL), or by providing
  109.      empty input (typically by typing ^D on the first empty line).
  110.  
  111.      If a job is scheduled during the 'witching hour' - the time during a
  112.      change from the main to alternate time zone, the job will either be run
  113.      once (if the actual time exists twice) or not at all (if the actual time
  114.      never exists).
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.